<div class="col-md-3 left_col">
  <div class="left_col scroll-view">
    <div class="navbar nav_title" style="border: 0;">
      <a href="/" class="site_title"><i class="fa fa-paw"></i> <span>
        <#if user?exists>
          ${user.account}
        </#if>

      </span></a>
    </div>

    <div class="clearfix"></div>

    <!-- menu profile quick info -->
    <div class="profile">
      <div class="profile_pic">
        <img src="/img/img.jpg" alt="..." class="img-circle profile_img">
      </div>
      <div class="profile_info">
        <#if user?exists>
          <span>Welcome,</span>
          <h2>${user.account}</h2>
        </#if>
      </div>
    </div>
    <!-- /menu profile quick info -->

    <br/>
    <br>
    <br>

    <!-- sidebar menu -->
    <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">

      <#if user?exists && user.account == "root">
        <div class="menu_section">
          <h3>系统管理</h3>
          <ul class="nav side-menu">

            <li><a><i class="fa fa-bug"></i> 用户管理 <span class="fa fa-chevron-down"></span></a>
              <ul class="nav child_menu">
                <li><a href="/users/create.html">新增用户</a>
                </li>
                <li><a href="projects.html">用户列表</a>
                </li>
                <li><a href="project_detail.html">权限设置</a>
                </li>
              </ul>
            </li>
          </ul>
        </div>
      </#if>

      <div class="menu_section">
        <h3>通用功能</h3>
        <ul class="nav side-menu">

          <li><a id="me-info"><i class="fa fa-bug"></i> 我的信息 <span class="fa fa-chevron-down"></span></a>
            <ul class="nav child_menu">
              <li><a href="#">个人资料</a>
              </li>
              <li><a href="#">修改密码</a>
              </li>
              <li><a href="#">偏好设置</a>
              </li>
              <li><a href="#">我的消息</a>
              </li>
              <li><a href="#">注销账号</a>
              </li>
            </ul>
          </li>

          <li><a><i class="fa fa-edit"></i> 任务管理 <span class="fa fa-chevron-down"></span></a>
            <ul class="nav child_menu">
              <li><a href="/flows/list.html">历史任务</a>
              </li>
              <li><a href="/flows/upload.html">新建任务</a>
              </li>
              <#if flowId?exists>
                <li><a href="/flows/${flowId}.html">当前任务</a>
                </li>
              </#if>

            </ul>
          </li>

          <li><a><i class="fa fa-windows"></i> 报告管理 <span class="fa fa-chevron-down"></span></a>
            <ul class="nav child_menu">
              <li><a href="page_404.html">过往报告</a>
              </li>
              <li><a href="page_500.html">当前报告</a>
              </li>
            </ul>
          </li>

        </ul>
      </div>

      <#if flowId?exists>
        <div class="menu_section">
          <h3>任务内功能</h3>
          <ul class="nav side-menu">
            <li><a><i class="fa fa-home"></i> 快速检索 <span class="fa fa-chevron-down"></span></a>
              <ul class="nav child_menu">
                <li><a href="index.html">关键词检索</a>
                </li>
                <li><a href="index2.html">常用检索</a>
                </li>
                <li><a href="index3.html">检索式检索</a>
                </li>
                <li><a href="index3.html">检索结果</a>
                </li>
              </ul>
            </li>


            <li><a><i class="fa fa-desktop"></i> 可视化预览 <span class="fa fa-chevron-down"></span></a>
              <ul class="nav child_menu">
                <li><a href="/graphs/classify1.html">第一类别</a>
                </li>
                <li><a href="/graphs/classify2.html">第二类别</a>
                </li>
                <li><a href="/graphs/classify3.html">第三类别</a>
                </li>
                <li><a href="/graphs/classify4.html">第四类别</a>
                </li>
                <li><a href="/graphs/classify5.html">第五类别</a>
                </li>
                <li><a href="/graphs/classify6.html">第六类别</a>
                </li>
                <li><a href="/graphs/classify7.html">第七类别</a>
                </li>
                <li><a href="/graphs/classify8.html">第八类别</a>
                </li>
              </ul>
            </li>

            <li><a><i class="fa fa-desktop"></i> 专利报告 <span class="fa fa-chevron-down"></span></a>
              <ul class="nav child_menu">
                <li><a href="/analysis.html">配置报告</a>
                </li>
              </ul>
            </li>

          </ul>
        </div>
      </#if>

    </div>
    <!-- /sidebar menu -->

    <!-- /menu footer buttons -->
    <div class="sidebar-footer hidden-small">
      <a data-toggle="tooltip" data-placement="top" title="设置">
        <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
      </a>
      <a data-toggle="tooltip" data-placement="top" title="快速发起任务">
        <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
      </a>
      <a data-toggle="tooltip" data-placement="top" title="帮助文档">
        <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
      </a>
      <a data-toggle="tooltip" data-placement="top" title="注销" href="/logout.html">
        <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
      </a>
    </div>
    <!-- /menu footer buttons -->
  </div>
</div>